from langchain_core.tools import tool
from utils.logger_config import LoggerSingleton
logger = LoggerSingleton.get_logger() 

@tool
def multiply_tool(a: int, b: int) -> int:
    """Multiply two numbers."""
    logger.info('使用multiply_tool工具')
    return a * b


if __name__ == '__main__':
    # Let's inspect some of the attributes associated with the tool.
    print(multiply_tool.name)
    print(multiply_tool.description)
    print(multiply_tool.args)